<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="./lib/axios.js"></script>
  </head>
  <body>
    <script>
      // axios  发起get请求
      let url = "http://www.liulongbin.top:3006/api/get";
      let paramsObj = { uname: "张三", sex: "男", age: "18" };
      axios.get(url, { params: paramsObj }).then(function (res) {
        console.log(res.data);
      });
    </script>
  </body>
</html>
